import 'package:demo/route/route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

void main() {
  runApp(const StockApp());
}

class StockApp extends StatelessWidget {
  const StockApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      initialRoute: RouteNames.home,
      getPages: staticRoutes,
      initialBinding: BindingsBuilder(() {}),
      builder: (BuildContext context, Widget? child) {
        ScreenUtil.init(
          context,
          designSize: const Size(720, 1280),
          minTextAdapt: true,
        );
        return FlutterEasyLoading(child: child);
      },
    );
  }
}
